@extends('Admin.Index.index')
@section('后台管理系统Ace','商品添加')
@section('admin.model')
<h4>商品添加页</h4>
<form role="form" method="post" action="/admin/goodsinsert" enctype="multipart/form-data">
{!!csrf_field()!!}
      <div class="form-group">
         <label for="email">商品名</label><input type="text" class="form-control" name="name"/>
      </div>
      <div class="form-group">
         <label for="password">商品分类</label><!-- <input type="text" class="form-control"  name="cid"/> -->
         <select name="cid">
            @foreach($cates as $key)
            <option style="background:yellowgreen" value='{{$key->cid}}'>{{str_repeat('|---',$key->level)}}{{$key->cname}}</option>
            @endforeach
         </select>
      </div>
      <div class="form-group">
         <label for="name">商品价格</label><input type="text" class="form-control"  name="price"/>
      </div>
      <div class="form-group">
         <label for="passwordConfirm">商品图片</label><input type="file" class="form-control"  name="img"/>
      </div>
      <div class="form-group">
        <button type="submit">提交</button>
        <!-- <button type="button" id="signin_button">哈虎</button> -->
      </div>
</form>
@endsection